package org.cy.websocket.stomp.messaging;

import org.cy.websocket.stomp.StompCommand;
import org.cy.websocket.stomp.StompHeaders;

/**
 * Created in 2021-05-09 20:52
 *
 * @author cao.yong
 */
public interface Message<T> {
    /**
     * STOMP Command
     * @return command as string
     */
    StompCommand getCommand();

    /**
     * STOMP Headers
     * @return Headers as Key/Value Pair
     */
    StompHeaders getHeaders();

    /**
     * STOMP Content preload
     * @return Preload as string
     */
    T getPayload();
}
